<?php

namespace App\Http\Controllers\web;

use App\Http\Controllers\Controller;
use App\Repository\RepositoryInterface\UserLoginInterface;
use Illuminate\Http\Request;
//用户登录注册类
class UserLoginController extends Controller
{
    //
    protected $userLogin;
    public function __construct(UserLoginInterface $userLogin){
        $this->userLogin = $userLogin;
    }
    public function perDetails($uid)
    {
        //参数判断
        if (!is_numeric($uid) || $uid == '') {
            return fails('参数格式不正确', '');
        }
        $result = $this->userLogin->perDetails($uid);
        return success('数据查询成功', $result);
    }
}
